package com.ushine.web.config.duird;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;

/**
 * @Author: yls
 * @Date: 2022/02/22 18:17
 * @Description: 统一属性控制类，获取配置文件属性
 * @Version 1.0
 */
@ConfigurationProperties(prefix = DataSourceProperties.DS, ignoreUnknownFields = false)
@Data
public class DataSourceProperties {
    static final String DS = "spring.datasource";

    private Map<String, String> primary;

    private Map<String, String> secondary;

    private Map<String, String> common;
}